'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  //todo 从app上拿到路由和controller
  // const { router, controller } = app;

  //todo 引入子路由文件 传入app
  // require('./router/login')(app);
  // require('./router/io')(app);


  //router.get('/', controller.v1.home.index);
  //todo router.resources自动生成crud详见egg文档
  //app.resources('routerName','pathMatch', controller) 快速在一个路径上生成 CRUD 路由结构。
  // router.resources('users', '/users', controller.v1.users);

    require('./router/v1/login')(app);
    require('./router/v1/admin/restful')(app);
    require('./router/v1/io')(app);
};
